<?php
class AdminTourCategoryController extends MyZend_Controller_Action {
	protected $_arrParam;
	
	protected $_actionMain;
	
	protected $_currentController;
	
	protected $_paginator = array(
			'itemCountPerPage' => 5,
			'pageRange' => 4
	);
	
	//protected $_errors = array();
	
	public function init() {
	
		$this->_arrParam          = $this->_request->getParams();
		$this->_currentController = '/' . $this->_arrParam['module']
		. '/' . $this->_arrParam['controller'];
	
		$this->_actionMain        = '/' . $this->_arrParam['module']
		. '/' . $this->_arrParam['controller'] . '/index';
	
		// render to view
		$this->view->arrParam 		   = $this->_arrParam;
		$this->view->actionMain 	   = $this->_actionMain;
		$this->view->currentController = $this->_currentController;
	
		$this->_helper->layout()->disableLayout();
		$template_path = TEMPLATE_PATH . '/admin/main';
		$this->loadTemplate($template_path);
	}
	
	public function indexAction() {
		$this->_helper->viewRenderer->setNoRender();
	}
	
}